package com.kangye.learnteacher.mapper;

import com.kangye.learnteacher.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * (StageMapper)阶段数据访问层
 *
 * @author make Java
 * @date 2021/5/18 0018 21:02
 */
@Mapper
@Repository
public interface StageMapper {

    /**
     * 年级查询
     * @param name  名称
     * @return  实例对象
     */
    Grade selectByName(String name);

    /**
     * 班级查询
     * @param name  名称
     * @return  实例对象
     */
    Classes selectName(String name);

    Subject selectSubName(String name,Integer subject_gradeId);

    TypeQuestion selectTqName(String name);

}
